package com.example.service;

import org.apache.curator.framework.CuratorFramework;
import org.apache.curator.framework.recipes.cache.PathChildrenCacheListener;
import org.apache.zookeeper.CreateMode;

public interface ZKService {

    public CuratorFramework getCuratorFramework();

    public void createNode(CreateMode mode, int ttl, String path) throws Exception;

    public void watchNode(String path, PathChildrenCacheListener pathChildrenCacheListener) throws Exception;
}
